﻿using CoreShop.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CoreShop.App
{
    public class TuoliduoUtil
    {
        /// <summary>
        /// 托利多电子秤PLU
        /// </summary>
        /// <param name="?"></param>
        public void SendToScales_TLD(string strIP, corecmsscale _scaleModel, List<corecmsfoodspec> _goodsList)
        {
            BillXml.CreateTaskXml();
            BillXml.CreateDeviceXml(strIP, "3001", "bCom", "1", "1");
            BillXml.CreateCommandXml();
            BillXml.CreateDataXml(_goodsList);
            MTscale.SendScale();
            string statusMsg = BillXml.CheckResult();
            if (statusMsg.Equals("1"))
                MessageBox.Show("下传完成");
            else
                MessageBox.Show(statusMsg);
        }

    }
}
